﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="schedule.aspx.cs" Inherits="Scheduler.schedule" %>

<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Calendar ID="Calendar1" runat="server" CssClass="calendar" OnSelectionChanged="Calendar1_SelectionChanged"
        DayNameFormat="FirstTwoLetters">
        <TodayDayStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px"></TodayDayStyle>
        <SelectedDayStyle BackColor="#FBE694" ForeColor="Black" CssClass="selected"></SelectedDayStyle>
        <TitleStyle BackColor="White"></TitleStyle>
        <OtherMonthDayStyle ForeColor="#ACA899"></OtherMonthDayStyle>
    </asp:Calendar>
    <br />
    <DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server" DataEndField="end"
        DataStartField="start" 
        DataTextField="name" 
        DataValueField="id" 
        Days="7" 
        NonBusinessHours="Hide"
        EventClickHandling="JavaScript"
        TimeRangeSelectedHandling="JavaScript"
        EventClickJavaScript="alert('Event with ID {0} clicked.');" 
        TimeRangeSelectedJavaScript="alert('Time slot starting at {0} clicked.');">
    </DayPilot:DayPilotCalendar>
</asp:Content>
